/**
 * $version:  0.1 
 * $Date: 2011-01-21 
 *
 * Copyright (C) 2010-2011 Jawa Software. All rights reserved.
 *
 */
package org.jawa.core.util;

/**
 * 系统中的一些常量信息.
 * 
 * @author Y-N
 */
public class JawaConstants {

	// 时间常量
	public static final long SECOND = 1000;
	public static final long MINUTE = 60 * SECOND;
	public static final long HOUR = 60 * MINUTE;
	public static final long DAY = 24 * HOUR;
	public static final long WEEK = 7 * DAY;

	// 日期与时间格式常量
	public static final String DATE_FORMAT = "yyyy-MM-dd";
	public static final String TIME_FORMAT = "HH:mm:ss";
	public static final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

	// 系统默认每页显示条数
	public static final int PAGE_SIZE = 15;

	// 系统用户默认密码.
	public static final String USER_PASSWORD = "111111";

	// 在session中存放当前用户的名称
	public static final String USER_KEY = "USERKEY";
	
	// 在session中存放当前管理用户的名称
	public static final String ADMIN_USER_KEY = "ADMIN_USER_KEY";

	// 当前系统的文件分隔符
	public static final String FILE_SEP = System.getProperty("file.separator");

	//当前系统的用户目录 
	public static final String USER_HOME = System.getProperty("user.home");
	
	//管理控制台菜单仓库
	public static final String MENU_REPOSITORY_KEY = "MENUREPOSITORYKEY";
	
	
	
	/*****************************************/

	public static final int DB_USER_SEQ = 0;
	public static final int DB_BRANCH_SEQ = 1;
	public static final int DB_QUESTION_SEQ = 2;
	public static final int DB_QUESTIONOPTION_SEQ = 2;
	

}